package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 学生加入班级或者课次的方式
 * @author panbo
 * @since 2024/8/1
 */
@Getter
@AllArgsConstructor
@Dict("加入方式")
public enum JoinTypeEnum implements DictEnum<Integer> {
    ENROLL(1, "报名", "default"),
    CHANGE_CLASS(2, "转入", "warning"),
    CHANGE_LESSON(3, "调入", "warning"),
    ;
    @JsonValue
    @EnumValue
    private final Integer value;
    private final String label;
    private final String color;
}
